package org.itboys.mobile.dto;

import org.itboys.mobile.dto.lasted.SundayUploadDto;
import org.itboys.mobile.dto.common.MobileBaseDto;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 作者：jiangxiong
 * 日期：2017年5月8日
 * 联系方式 ：empty90911@126.com
 * 描述：圣代_用户_DTO
 */
public class SundayMemberDto extends MobileBaseDto{
    //基础属性
    private String userName;//登陆账号。随机生成
    private String nickName;//昵称
    private String mobile;//手机号。用户注册标识
    private String mobileName;//联系电话
    private String address;//地址
    private String email;//电子邮箱
    private Integer userType;//用户类型。根据项目逻辑自行定义。1用户，3，商户
    private String image;//头像
    private String idCard;//身份证号
    private String birthDay;//生日
    private String sex;//性别
    private String desc;//个人简介
    //项目私有属性
    private String grade;//用户评分。默认5
    private String businessType;//商户类型。
    private String businessTime;//营业时间
    //项目信息
    private Integer isCollection;//是否收藏
    private String descUrl;//商品详情网页地址
    private List<Map<String,Object>> products;//推荐商品。
    private List<SundayCommentDto> comments;//评论。
    private Double distance;//距离
    private String shareUrl;//分享地址
    private String shareImage;//分享图片
    private String shareTitle;//分享名称
    private String shareDesc;//分享描述
    private String token;//交互的token
    private Integer memberLevel;
    private  Double total;

    public SundayMemberDto() {
    }

    public SundayMemberDto(long id, String createTime, String createDate,
                           String userName, String nickName, String mobile, String mobileName, String address, String email,
                           Integer userType, String image, String idCard, String birthDay, String sex,
                           String desc, String grade, String businessType, String businessTime) {
        super(id, createTime, createDate);
        this.userName = userName;
        this.nickName = nickName;
        this.mobile = mobile;
        this.mobileName = mobileName;
        this.address = address;
        this.email = email;
        this.userType = userType;
        this.image = image;
        this.idCard = idCard;
        this.birthDay = birthDay;
        this.sex = sex;
        this.desc = desc;
        this.grade = grade;
        this.businessType = businessType;
        this.businessTime = businessTime;

    }
    public SundayMemberDto(Integer memberLevel, String userName,Double total){
        this.memberLevel = memberLevel;
        this.total = total;
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMobileName() {
        return mobileName;
    }

    public void setMobileName(String mobileName) {
        this.mobileName = mobileName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(String birthDay) {
        this.birthDay = birthDay;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getBusinessTime() {
        return businessTime;
    }

    public void setBusinessTime(String businessTime) {
        this.businessTime = businessTime;
    }

    public Integer getIsCollection() {
        return isCollection;
    }

    public void setIsCollection(Integer isCollection) {
        this.isCollection = isCollection;
    }

    public String getDescUrl() {
        return descUrl;
    }

    public void setDescUrl(String descUrl) {
        this.descUrl = descUrl;
    }

    public List<Map<String, Object>> getProducts() {
        return products;
    }

    public void setProducts(List<Map<String, Object>> products) {
        this.products = products;
    }

    public List<SundayCommentDto> getComments() {
        return comments;
    }

    public void setComments(List<SundayCommentDto> comments) {
        this.comments = comments;
    }

    public Double getDistance() {
        return distance;
    }

    public void setDistance(Double distance) {
        this.distance = distance;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public String getShareImage() {
        return shareImage;
    }

    public void setShareImage(String shareImage) {
        this.shareImage = shareImage;
    }

    public String getShareTitle() {
        return shareTitle;
    }

    public void setShareTitle(String shareTitle) {
        this.shareTitle = shareTitle;
    }

    public String getShareDesc() {
        return shareDesc;
    }

    public void setShareDesc(String shareDesc) {
        this.shareDesc = shareDesc;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    /**
     * 状态的中文信息
     */
    public String  getUserTypeStr(){
        String userTypeStr= "";
        if(userType==null)return userTypeStr;

        switch (userType) {
            case 1:
                userTypeStr="会员";
                break;
            case 2:
                userTypeStr="商户";
                break;
            default:
                break;
        }
        return userTypeStr;
    }


}
